package com.qf.service.impl;

import com.qf.entity.Department;
import com.qf.mapper.DepartmentMapper;
import com.qf.service.DepartmentService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class DepartmentServiceImpl implements DepartmentService {
    @Resource
    private DepartmentMapper departmentMapper;
    @Override
    public List<Department> getAllDepartment() {
        return departmentMapper.getAllDepartment();
    }

    @Override
    public Department getDepartmentById(Integer deptId) {
        return departmentMapper.getDepartmentBYId(deptId);
    }
}
